 

package com.zdkj.admin.api.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author cui_com
 * @since 2017-10-29
 */
@Data
@ApiModel(value = "用户")
public class SysUser implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键ID
	 */
	@TableId(value = "user_id", type = IdType.AUTO)
	@ApiModelProperty(value = "主键id")
	private Integer userId;
	/**
	 * 用户名
	 */
	@ApiModelProperty(value = "用户名")
	@ExcelProperty(value = "用户名",index = 0)
	private String username;
	/**
	 * 员工编号
	 */
//	@NotNull(message = "员工号不能为空")
	@ApiModelProperty(value = "员工编号")
	@ExcelProperty(value = "员工编号",index = 1)
	private String userCode;
	/**
	 * 密码
	 */
	@ApiModelProperty(value = "密码")
//	@Length(min = 8,message = "用户密码长度不能少于8位")
//	@NotNull(message = "密码不能为空")
	private String password;
	/**
	 * 随机盐
	 */
	@JsonIgnore
	@ApiModelProperty(value = "随机盐")
	private String salt;
	/**
	 * 创建时间
	 */
	@ApiModelProperty(value = "创建时间")
	private LocalDateTime createTime;
	/**
	 * 修改时间
	 */
	@ApiModelProperty(value = "修改时间")
	private LocalDateTime updateTime;
	/**
	 * 0-正常，1-删除
	 */
	@TableLogic
	@ApiModelProperty(value = "删除标记,1:已删除,0:正常")
	private String delFlag;
	/**
	 * 锁定标记
	 */
	@ApiModelProperty(value = "锁定标记")
	private String lockFlag;
	/**
	 * 手机号
	 */
	@ApiModelProperty(value = "固定电话")
	private String phone;
	/**
	 * 头像
	 */
	@ApiModelProperty(value = "头像地址")
	private String avatar;
	/**
	 * 部门ID
	 */
	@ApiModelProperty(value = "用户所属部门id")
	@ExcelProperty(value = "所属部门",index = 3)
	private Integer deptId;
	/**
	 * 租户ID
	 */
	@ApiModelProperty(value = "用户所属租户id")
	private Integer tenantId;
	/**
	 * 微信openid
	 */
	@ApiModelProperty(value = "微信openid")
	private String wxOpenid;
	/**
	 * QQ openid
	 */
	@ApiModelProperty(value = "QQ openid")
	private String qqOpenid;
	/**
	 * 码云唯一标识
	 */
	@ApiModelProperty(value = "码云唯一标识")
	private String giteeLogin;
	/**
	 * 开源中国唯一标识
	 */
	@ApiModelProperty(value = "开源中国唯一标识")
	private String oscId;

	/**
	 * 账号昵称
	 */
	@ApiModelProperty(value = "账号昵称")
	@ExcelProperty(value = "姓名",index = 2)
	private String nikename;

	/**
	 * email
	 */
	@ApiModelProperty(value = "email")
	private String email;

	/**
	 * 钉钉id
	 */
	@ApiModelProperty(value = "钉钉id")
	private String dingdingId;

	/**
	 * 手机号
	 */
	@ApiModelProperty(value = "手机号")
	@ExcelProperty(value = "手机",index = 4)
	private String mobilePhone;
	/**
	 * 是否是线路人员
	 */
	@ApiModelProperty(value = "是否是线路人员 true:1 false:0")
	private Boolean belongToLine;
	/**
	 * 线路code
	 */
	@ApiModelProperty(value = "线路code")
	private String lineCode;
	/**
	 * 车站code
	 */
	@ApiModelProperty(value = "车站code")
	private String stationCode;

	@ApiModelProperty(value = "用户标识: ACC SC LC 空表示不通过标识进行过滤")
	@ExcelProperty(value = "用户标识",index = 5)
	private String flag;

	@ApiModelProperty(value = "设备操作号")
	private String deviceOperateNo;

	@ApiModelProperty(value = "管辖车站，空或空串表示不管辖，格式请使用json数组，如：" +
			"：[{\"line\":\"4号线\",\"station\":\"金乎沱\"},{\"line\":\"4号线\",\"station\":\"大雁塔\"},{\"line\":\"2号线\",\"station\":\"钟楼\"}]")
	private String managementLineStation;


	/**
	 * 线路名
	 */
	@TableField(exist = false)
	private String lineName;
	/**
	 * 站点名
	 */
	@TableField(exist = false)
	private String stationName;


}
